package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzjm.exercise.sys.core.file.domain.FileDO;
import lombok.Data;
import net.sf.json.JSONArray;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 会员卡
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("shop")
public class Shop implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 *  所属平台id
	 */
	private Integer platformId;
	private Integer pianquId;
	private Integer userId;
	private Integer sysUserId;
	private String shopName;
	private String shopLogo;
	private Double longitude;
	private Double latitude;
	private Integer districtId;

	private String townName;
	/**
	 *  行政区划编号
	 */
	private String areaCode;


	private Integer provId;

	private Integer cityId;

	private String proCity;
	private String address;
	private String telphone;
	private Integer townId;
	private String email;
	private Integer state;
	/**
	 * 1巡检  2:车辆预约的企业 3 烟花爆竹企业
	 */
	private Integer shopType;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	private String shopNo;
	private String keyWord;
	private String controlText;
	private String qrcodeImg;

	private Integer groupId;

	/**
	 *  法人姓名
	 */
	private String leaderName;
	/**
	 *  法人手机号
	 */
	private String leaderPhone;
	/**
	 *  法人身份证号
	 */
	private String idNo;

	private Integer isFire;

	private Integer isOpenFace;

	/**
	 *  统一社会编码
	 */
	private String socialCode;

	/**
	 *  企业创建日期
	 */
	private String buildDate;

	private String headman;

	/**
	 *  法人姓名
	 */
	private String legalPerson;


	/**
	 *  法人手机号
	 */
	private String legalPhone;

	private String companyType;

	private Long fireCheckSysUserId;
	private Long highCheckSysUserId;
	private Long spaceCheckSysUserId;

	/**
	 *  最后审核人id
	 */
	private Long fireChargeSysUserId;
	/**
	 * 最后批准人
	 */
	private Long lastSubmitSysUserId;
	/**
	 * 车辆预约公众号推送人
	 */
	private Long carManagerSysUserId;

	private Integer deviceShowType;

	/**
	 *  同步省平台的标识   0 - 未同步  1 - 已同步  2 - 待同步
	 */
	private Integer isUpload;

	@TableField(exist = false)
	private FileDO shopLogoFile;

	@TableField(exist = false)
	private List<FileDO> imageFile;

	@TableField(exist = false)
	private String hidShopTypes;

	@TableField(exist = false)
	private Long device0Count;

	@TableField(exist = false)
	private Long device1Count;

	@TableField(exist = false)
	private Long deviceCount;

	@TableField(exist = false)
	private String companyTypeName;

	@TableField(exist = false)
	private Integer deviceCount2;

	@TableField(exist = false)
	private Integer deviceGLCount;

	@TableField(exist = false)
	private Integer deviceYGCount;

	@TableField(exist = false)
	private Integer deviceCount3;

	@TableField(exist = false)
	private Integer rangeCount0;

	@TableField(exist = false)
	private Integer rangeCount1;

	@TableField(exist = false)
	private Integer weldingCount0;

	@TableField(exist = false)
	private Integer weldingCount1;

	@TableField(exist = false)
	private String pianquName;


}
